//
//  GoalSetupTitleView.swift
//  DaRings
//
//  Created by 魔样科技 on 2022/11/11.
//

import Foundation
import MYModule

class GoalSetupTitleView: View {
    
    override func makeUI() {
        super.makeUI()
        
        self.addSubview(self.title)
        self.title.snp.makeConstraints { make in
            make.leading.equalTo(20)
            make.top.equalTo(10)
            make.center.equalToSuperview()
        }
    }
    
    public func setupTitle(title: String) {
        self.title.text = title
    }
    
    //MARK: - lazy load -
    private lazy var title: Label = {
        let label = Label()
        label.font = Fonts.boldSystemFont(ofSize: 28)
        label.textColor = UIColor.assist_222222
        return label
    }()
}
